﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessEntities
{
    public class ArmoryProgress
    {
        public delegate void NotificationsEventHandler(ArmoryNotificationEventArgs e);

        public static event NotificationsEventHandler ArmoryProgressed;

        // Invoke the Changed event; called whenever list changes
        public static void Notify(ArmoryNotificationEventArgs e)
        {
            if (ArmoryProgressed != null)
                ArmoryProgressed(e);            
        }
    }

    public class ArmoryNotificationEventArgs: EventArgs
    {
        public string Message{ get; set; }

        public ArmoryNotificationEventArgs(string message)
        {
            Message = message;
        }
    }
}
